<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="ConsultativeAdd.aspx.cs"
    Inherits="admin_Consultative_ConsultativeAdd" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../../Control/Upfile.ascx" TagName="Upfile" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加行业资讯</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../editor/comm.css" />
<script language="javascript" type="text/javascript"  src="../../editor/all.js"></script>
<script language="javascript" type="text/javascript" src="../../editor/editor.js"></script>
<script language="javascript" type="text/javascript" src="../../editor/editor_toolbar.js"></script>
    <script type="text/javascript">
    function display() 
    { 
        var rowTest=document.getElementById("rowTest");
        var rowTest1=document.getElementById("rowTest1");
        switch (document.form1.chkChangeDirectionLink.checked) 
        { 
            case false: 
                 document.form1.text.disabled=true;
                 rowTest.style.display="block";
                 rowTest1.style.display="block";
                 document.form1.text.value="";
            break; 
            case true: 
                document.form1.text.disabled=false; 
                rowTest.style.display="none";
                rowTest1.style.display="none";
                document.form1.text.value="";
            break; 
            } 
     } 
    function showadv()
    {
        if (document.form1.pic_on.checked == true) 
        {
            adv.style.display = "";
            advance.innerText="取消上传标题图片"
        }
        else
        {
            adv.style.display = "none";
            advance.innerText="上传标题图片"
        }
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="HiddUserID" runat="server" />
        <div class="talbe_border marie">
            <table cellspacing="0" cellpadding="0" border="0" class="talbe_list">
                <tr>
                    <th colspan="2" class="header tou">
                        添加新闻资讯</th>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        标题
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtTitle" runat="server" Width="200"></asp:TextBox>
                        </span>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        信息分类
                    </td>
                    <td class="left2">
                        <asp:DropDownList ID="dropTypeID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropTypeID_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:DropDownList ID="dropType" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td class="left1">
                        图片
                    </td>
                    <td>
                        <div style="float: left">
                            <asp:HiddenField ID="ImgUrl1" runat="server" />
                            <asp:HiddenField ID="HiddenField1" runat="server" />
                            <a href="" id="txturldz" target="_blank">
                                <img src="../../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
                                    border="0" id="ImgUrl" runat="server" /></a><br />
                            <input id="txtupload" type="button" value="上传" /><br />
                            <div id="rowTest" style="display: none">
                                <iframe name="tag" src="../UpFile/Upload.html?NOWATER" style="width: 550px; height: 125px"
                                    frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                                </iframe>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        信息属性
                    </td>
                    <td class="left2">
                        <asp:CheckBoxList ID="chklAttribute" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0">推荐</asp:ListItem>
                            <asp:ListItem Value="1">置顶</asp:ListItem>
                            <asp:ListItem Value="2">幻灯片</asp:ListItem>
                            <asp:ListItem Value="3">是否允许评论</asp:ListItem>
                        </asp:CheckBoxList></td>
                </tr>
                <tr>
                    <td class="left1">
                        关键字</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtKeyWord" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt1">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        文章作者</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtAuthor" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        文章来源
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtOrigin" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        转向连接
                    </td>
                    <td class="left2">
                        <span>
                            <input id="text" type="text" runat="server" maxlength="100" disabled="disabled" />
                            <input id="chkChangeDirectionLink" type="checkbox" runat="server" onclick="display()"
                                style="color: Red" value="1" /></span><div style="color: #ff0000" id="link">
                                    注：请在转向链接前加http://</div>
                    </td>
                </tr>
                <tr id="rowTest1">
                    <td class="left1">
                        导读</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtReading" runat="server" Height="83px" TextMode="MultiLine" Width="547px"></asp:TextBox></span><div
                                id="txt4">
                            </div>
                    </td>
                </tr>
                <tr id="rowTests">
                    <td class="left1">
                        详细信息
                    </td>
                    <td>
                        文章分页标签：&nbsp;&nbsp;<span style="font:#FF0000">[page]</span>&nbsp;&nbsp;<span onclick="javascript: window.clipboardData.setData('Text','[page]')">复制</span>
                       <FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400px" Width="640">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        添加时间</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtAddDate" runat="server" onfocus="calendar()" Width="200"></asp:TextBox></span>
                        <div style="color: #ff0000">
                            注:如果不填默认为当前时间</div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        点击次数</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtClickCount" runat="server" Width="200"></asp:TextBox></span><div
                                id="txt5">
                            </div>
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="2" bgcolor="#fefbf7">
                        <asp:Button ID="btnServer" runat="server" OnClick="btnServer_Click" Text="确定" CssClass="i_button" /><asp:Button
                            ID="btnCancel" runat="server" Text="重置" OnClick="btnCancel_Click" CssClass="i_button" /></td>
                </tr>
            </table>
        </div>

        <script type="text/javascript" src="../../js/calendar.js"></script>

        <script type="text/javascript" src="../js/Consultative.js"></script>

        <script type="text/javascript" src="../../js/Common.js"></script>

    </form>
</body>
</html>
